import request from '@/utils/request'

// 查询主线站点间里程实测数据测试列表
export function listRoadSectionDistanceTest(query) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/list',
    method: 'get',
    params: query
  })
}

// 查询主线站点间里程实测数据测试详细
export function getRoadSectionDistanceTest(id) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/' + id,
    method: 'get'
  })
}

// 新增主线站点间里程实测数据测试
export function addRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/roadSectionDistanceTest',
    method: 'post',
    data: data
  })
}

// 修改主线站点间里程实测数据测试
export function updateRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/roadSectionDistanceTest',
    method: 'put',
    data: data
  })
}

// 删除主线站点间里程实测数据测试
export function delRoadSectionDistanceTest(id) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/' + id,
    method: 'delete'
  })
}

// 导出主线站点间里程实测数据测试
export function exportRoadSectionDistanceTest(query) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/export',
    method: 'get',
    params: query
  })
}

// 导入主线站点间里程实测数据测试
export function importRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/importData',
    method: 'post',
    data: data
  })
}

// 实测单位批量审核
export function review1RoadSectionDistanceTest() {
  return request({
    url: '/functiontest/roadSectionDistanceTest/review1',
    method: 'post'
  })
}

// 检查所有数据的review1字段是否都为0
export function checkReview1RoadSectionDistanceTest() {
  return request({
    url: '/functiontest/roadSectionDistanceTest/checkReview1',
    method: 'get'
  })
}

// 业主批量审核
export function review2RoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/roadSectionDistanceTest/review2',
    method: 'post',
    data: data
  })
}

// 检查所有数据的review1和review2字段是否都不为空且都为0
export function checkReview2RoadSectionDistanceTest() {
  return request({
    url: '/functiontest/roadSectionDistanceTest/checkReview2',
    method: 'get'
  })
}

// 中心批量审核
export function review3RoadSectionDistanceTest() {
  return request({
    url: '/functiontest/roadSectionDistanceTest/review3',
    method: 'post'
  })
})
}
